import request from "@/utils/request";

// 新增获取部门树接口
export function GetAllMenus() {
  return request({
    url: `/Menu/GetAll`,
    method: "GET"
  });
}  
export function GetMenusList() {
  return request({
    url: `/Menu/GetMenusList`,
    method: "GET"
  });
}
export function AddMenu(data: any) {
  return request({
    url: `/Menu/AddMenu`,
    method: "Post",
    data
  });
}

export function EditMenu(data: any) {
  return request({
    url: `/Menu/EditMenu`,
    method: "Post",
    data:data
  });
}
export function DeleteMenus(ids: string[]) {
  return request({
    url: `/Menu/DeleteMenus`,
    method: "delete",
    data: ids,
  });
}